package com.kylin.java;

/**
 * 默认 count：10824
 * 设置栈的大小： -Xss256k  count:1874
 */
public class StackErrorTest {
    private static int count = 1;

    public static void main(String[] args) {
        ////Exception in thread "main" java.lang.StackOverflowError
        //System.out.println(count);
        //count++;
        //main(args);
        char c = 'A';
        char a = 'a';
        c+=32;
        System.out.println(c);

    }

    public String toLowerCase(String str) {
        char[] c = str.toCharArray();

        for(int i = 0;i<c.length;i++){
            if(c[i]>='A'&&c[i]<='Z'){
                char res = c[i];
                res += 32;
                c[i] = res;
                res = 0;
            }
        }
        return new String(c);
    }
}
